$(document).ready(function(){
	path = "http://v.gaodun.com";
	if(typeof(GAODUNER) != "undefined")
		//path = GAODUNER.path;
	var url=path+'/Json/getprosub?callback=?';
	$.getJSON(url,{},function(data){
		html='';
		for(var i=0;i<data.data.length;i++){
			if(data.data[i]['subject']){
				html+='<dt><a href="/Course/'+data.data[i]['id']+'/0/0" class="lft" l="'+(i+1)+'" proid="'+data.data[i]['id']+'"  sid="1" subid="-1" >'+data.data[i]['name']+'</a><a class="more" href="/Course/'+data.data[i]['id']+'/0/0" l="'+(i+1)+'" proid="'+data.data[i]['id']+'"  sid="2" subid="-1">更多&gt;</a></dt>';
				html+='<dd>';
					for(var j=0;j<data.data[i]['subject'].length;j++){
						html+='<a href="/Course/'+data.data[i]['id']+'/'+data.data[i]['subject'][j]['id']+'/0" l="'+(i+1)+'" proid="'+data.data[i]['id']+'"  sid="'+(j+3)+'" subid="'+data.data[i]['subject'][j]['id']+'">'+data.data[i]['subject'][j]['name']+'</a>';
					}
				html+='</dd>';
			}
		}
		$('#prosub').html(html);
			

	});
})